<template>
  <div class="con">
    <div class="selectPos"><el-select
          :teleported="false"
          style="width: 150px"
          size="small"
          clearable
          placeholder="请选择查看指标"
          v-model="typeWork"
        >
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select></div>
    <div class="left">
      <div class="proBox">
        <el-progress
          type="dashboard"
          :percentage="percentage"
          :color="colors"
          :show-text="false"
        ></el-progress>
      </div>
      <div class="aqiBox">
        <p>AQI</p>
        <p>39.2</p>
        <p>优秀</p>
      </div>
      <div class="listThree">
        <div class="list"><p>PM2.5</p><p>16.5</p></div>
        <div class="list"><p>PM10</p><p>30.5</p></div>
        <div class="list"><p>PM噪音</p><p>30.5</p></div>
      </div>
    </div>
    <div class="right">
      <div class="list">
        <p class="name">气温</p>
        <p class="data">21.81℃</p>
      </div>
      <div class="list">
        <p class="name">气温</p>
        <p class="data">21.81℃</p>
      </div>
      <div class="list">
        <p class="name">气温</p>
        <p class="data">21.81℃</p>
      </div>
      <div class="list">
        <p class="name">淋喷已开启</p>
       
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:'homeArea7',
  data() {
    return {
      percentage: 70,
      colors: [
        { color: "#de3131", percentage: 20 },
        { color: "#ea7532", percentage: 40 },
        { color: "#beed14", percentage: 60 },
        { color: "#45e219", percentage: 80 },
        { color: "#0de34e", percentage: 100 },
      ],
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.con {
  height: 240px;
  display: flex;
  justify-content: space-evenly;
  position: relative;
    .selectPos{
      position: absolute;
      top:-37px;
      right:30px;
    }
  .left {
    width: 60%;
    height: 180px;
    position:relative;
    .proBox {
      width:130px;
      margin: 35px auto 0px;
    }
    .aqiBox{
      position: absolute;
      top:70px;
      left:118px;
      
    }
    .listThree{
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      .list{
        width: 60px;
        height: 60px;
        border-radius: 50%;
        // background-color: rgb(23, 23, 23);
        box-shadow: 1px 1px 1px 1px rgb(19, 224, 255) inset;
        font-size: 11px;
        color: #1c8fd6;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
      }
      
    }
  }
  .right {
    width: 30%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    .list{
      .name{
        color:rgb(198, 198, 198);
      }
    }
  }
}
</style>